package com.ruoyi.business.controller;


import cn.hutool.core.bean.BeanUtil;
import com.ruoyi.business.common.Result;
import com.ruoyi.business.entity.HomestayInfo;
import com.ruoyi.business.entity.Orders;
import com.ruoyi.business.entity.dto.OrderDetail;
import com.ruoyi.business.service.FrontHomestayInfoService;
import com.ruoyi.business.service.FrontOrdersService;
import com.ruoyi.business.service.FrontSellerService;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.parameters.RequestBody;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Ao
 * @since 2024-01-08
 */
@RestController
@RequestMapping("/orders")
public class FrontOrdersController {

    @Autowired
    private FrontOrdersService frontOrdersService;



    @RequestMapping("/list")
    public Result<List<Orders>> getList(){
        List<Orders> list = frontOrdersService.list();
        return Result.success(list);

    }






}

